package online.misscl.lsy.service;

import com.baomidou.mybatisplus.extension.service.IService;
import online.misscl.lsy.entity.VaccineAppointment;
import online.misscl.lsy.entity.dto.*;
import online.misscl.lsy.entity.dto.vo.VaccineAppointmentBackVo;
import online.misscl.lsy.entity.dto.vo.VaccineAppointmentVo;

import java.util.List;

/**
 * <p>
 * 预约订单表 服务类
 * </p>
 *
 * @author misscl
 * @since 2023/03/11 11:14
 */
public interface VaccineAppointmentService extends IService<VaccineAppointment> {

    /**
     * 筛选
     * @param dto
     * @return
     */
    List<VaccineAppointmentBackVo> queryAppointment(VaccineAppointmentQueryDto dto);

    /**
     * 预约疫苗
     *
     * @param addVaccineAppointmentDTO
     * @param userId
     * @return
     */
    int addAppointment(AddVaccineAppointmentDTO addVaccineAppointmentDTO, Integer userId);

    /**
     * 取消预约
     * @param cancelAppointmentDTO
     * @param userId
     * @return
     */
    int cancelAppointment(CancelAppointmentDTO cancelAppointmentDTO, Integer userId);

    /**
     * 查看预约订单
     * @param state
     * @param userId
     * @return
     */
    List<VaccineAppointmentVo> myAppointment(MyAppointmentDto myAppointmentDto, Integer userId);

    /**
     * 核销预约码
     * @param verificationAppointmentDTO
     * @param userId
     * @return
     */
    int verificationAppointment(VerificationAppointmentDTO verificationAppointmentDTO, Integer userId);


}
